<?php


namespace app\api\model;


class OrderItem extends Base
{
    protected $autoWriteTimestamp = 'datetime';

    //关联商品表
    public function book() {
        return $this->hasOne('Book','item_id');
    }
}